package com.pair.micro.fee.modules.charge.controller;

import com.pair.micro.common.response.MicroResult;
import com.pair.micro.fee.modules.charge.query.GardenQuery;
import com.pair.micro.fee.modules.charge.service.GardenService;
import com.pair.micro.fee.modules.charge.vo.GardenVO;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.Valid;
import lombok.AllArgsConstructor;
import org.springdoc.core.annotations.ParameterObject;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("fx")
@Tag(name = "小区管理")
@AllArgsConstructor
public class GardenController {
    private GardenService gardenService;
    @GetMapping(value = "/gardenList")
    @Operation(summary = "获取小区列表")
    public MicroResult<List<GardenVO>> gardenList(){
        List<GardenVO> list =  gardenService.selectGardenList();
        return MicroResult.ok(list);
    }

}
